package com.sakura.flux.feign;

import com.sakura.flux.entity.Product;
import com.sakura.flux.entity.User;
import com.sakura.flux.feign.fallback.UserClientFallback;
import com.sakura.flux.result.R;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.data.mongodb.core.schema.TypedJsonSchemaObject;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(
        value = "service-user",
        fallback = UserClientFallback.class,
        url = "http://localhost:8090"
)
public interface UserClient {

//    @RequestLine("GET /user/info")
    @GetMapping("/user/info")
    Object userInfo();
}
